package com.discount.frame;

import com.opensymphony.xwork2.ActionSupport;



/**
 * 
 * @Package webapp.com.discount.index.action
 *
 * @Title: MainFrameAction.java 
 *	
 * @Description: 网站布局action
 *
 * @Copyright:   Copyright (c)2010
 *
 * @Company:     折扣网工作组
 *
 * @author:      付奎
 *
 * @date 2010-8-14 下午06:22:45
 *
 * @version V1.0   
 *
 */
public class MainFrameAction extends ActionSupport{

	private String bodyModel ;
	
			
	private static final long serialVersionUID = 1L;

	/**
	 * 初始化首页
	 * @return
	 */
	public String init(){
		
		
		return SUCCESS ;
	}
	
	/**
	* @Description: 显示网站导航条
	* 
	* @return
	*
	* @author: 付奎
	*
	* @version: 2010-8-15 下午08:27:34
	 */
	public String showMenu(){
		
		
		
		return SUCCESS ;
	}
	
	
	/**
	 * 显示首页内容
	 * @return
	 */
	public String showMainBody(){
		/*
		if( bodyModel == null || bodyModel.equals( "" ) ){
			bodyModel = "1";
		}
		String forward = "index";
		NavigationTabEnum [] tabEnum = NavigationTabEnum.values(); 
		for (int i = 0; i < tabEnum.length; i++) {
			tabEnum[i].ordinal();
			if( tabEnum[i].ordinal() == Integer.valueOf( bodyModel ) ){
				forward = tabEnum[i].name();
			}
		}
		
		
		
		return  forward.toLowerCase() ;*/
		
		return "index";
	}
	
	public String getBodyModel() {
		return bodyModel;
	}

	public void setBodyModel(String bodyModel) {
		this.bodyModel = bodyModel;
	}

}
